import request from '@/config/axios'

// 招商人员加盟套餐 API
export const AgencyApi = {
  // 分页
  getPage: async (params: any) => {
    return await request.get({ url: `/member/agency-package/page`, params })
  },

  // 详情
  getDetail: async (id: number | string) => {
    return await request.get({ url: `/member/agency-package/get/${id}` })
  },

  // 新增
  create: async (data: any) => {
    return await request.post({ url: `/member/agency-package/create`, data })
  },

  // 修改
  update: async (data: any) => {
    return await request.post({ url: `/member/agency-package/update`, data })
  },

  // 删除
  delete: async (id: number | string) => {
    return await request.post({ url: `/member/agency-package/delete/${id}` })
  }
}
